package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Device;
import com.lucher.mes.po.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    //自定义接口
    List<Role> findByList(Role record);
    List<Role> findByListForPage(Role record);
    int findByCount(Role record);
    Role findByRolecode(String rolecode);

    //根据角色ID 返回对操作者人数
    Integer getOperatorCountByRoleId(Integer roleId );


}